VBALOAD
 
 
 
Quick Reference
See Also

Loads a global VBA project into the current work session.

NoteMicrosoft® Visual Basic® for Applications software (VBA) is no longer installed with AutoCAD. For more information, visit http://www.autodesk.com/vba-download.

Access Methods

Button

 Ribbon: Manage tabApplications panelLoad ProjectNot available on the ribbon in the current workspace
 Menu: ToolsMacroLoad ProjectNot available in menus in the current workspace

Summary

The Open VBA Project dialog box (a standard file selection dialog box) is displayed.

VBA projects are stored in a separate file with a .dvb extension. Once loaded, the modules and macros of a VBA project are available in the Macros dialog box.

There is no limit to the number of Visual Basic for Applications (VBA) projects you can load. Any project referenced by the selected project will also be loaded, if available.

You cannot use this dialog box to load embedded VBA projects. Embedded projects are loaded when you open the drawing containing the project, and they are unloaded when you close the drawing.

If you select Open Visual Basic Editor, the Visual Basic Editor is opened after the selected project is loaded. For information about the Visual Basic Editor, see the ActiveX and VBA Developer's Guide.

If FILEDIA is set to 0 (zero), or if you enter -vbaload at the Command prompt, VBALOAD displays command prompts.

List of Prompts

The following prompts are displayed.

Open VBA project <>: Enter the path and file name of the project to open

If the selected project contains macros, the AutoCAD Macro Virus Protection dialog box is displayed.